<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>加载本地页面</title>
    <script src="../../lib/jquery-3.4.1.js"></script>





</head>
<body>
<div id="div1">加载本地页面</div>

<hr>
<button id="button1">加载本地页面</button>


<script>

    $(document).ready(function () {

        $("#button1").click(function () {

            $("#div1").load("../../zy/xwx.txt",function (rep,state,xhr) {

                alert(rep);
                alert(state);
                alert(xhr);

            });

        });


    })


</script>

</body>
</html>